import zclass.MyClassFileReader;
import zclass.MyClassLoader;
import zclass.MyObject;

public class JVMClassLoaderSystem {
    // 生成class对象
    private MyClassLoader loader;
    // 读取Class文件
    private MyClassFileReader reader;

    public JVMClassLoaderSystem() {
        loader = new MyClassLoader();
        reader = new MyClassFileReader();
    }

    public Class<MyObject> loadMyObjectClass() {
        String inputStream = reader.getMyObjectClassFileInputStream();
        return loader.loadMyObjectClass(inputStream);
    }
}
